var initstate={
    list2:[]
}

function reducer(state=initstate,action){
    switch(action.type){
        case 'HOTPRO':
            //console.log(action);//{payload:{},type:{}}
            return {...state,list2:action.payload};
        default:
            return state
    }
}

export default reducer;